﻿@model IEnumerable<DBTramite.BussinesEntities.T_Emisor>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>
<p>
    
    @Html.ActionLink("Busqueda Persona Natural", "BusquedaNatural")
</p>
<p>
    @Html.ActionLink("Busqueda Persona Juridica", "BusquedaJuridica")
</p>
<p>
    @Html.ActionLink("Registrar Nueva Persona", "CreateJuridica")
</p>
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Buscar Persona</legend>
        <b>Nombre:</b>
        @Html.TextBox("Criterio")
        <input type="submit" name="btnBuscar"  value ="Buscar"/>
    </fieldset> 
}
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.codemisor)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.direccion)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.telefono)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.email)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.nombre)
            
        </th>
        <th>
            @Html.DisplayNameFor(model => model.apepaterno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.apematerno)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.dni)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ruc)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tipopersona)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.id_dep)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.id_old)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.codusuario)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.codemisor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.direccion)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.telefono)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nombre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.apepaterno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.apematerno)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dni)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ruc)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tipopersona)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.id_dep)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.id_old)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.codusuario)
        </td>
        <td>
          <!--   @Html.ActionLink("Edit", "EditNatural", new { id=item.codemisor}) |
                 @Html.ActionLink("Delete", "Delete", new { id=item.codemisor}) -->
         </td>
    </tr>
}

</table>
